﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace Hsp.Novels.Model
{
    /// <summary>
    /// 章节实体
    /// </summary>
    [SugarTable("Chapters")]
    public class Chapters : BaseModel
    {
        /// <summary>
        /// 章节编号
        /// </summary>
        [DataMember]
        [SugarColumn(IsPrimaryKey = true)]
        public string Id { get; set; }

        /// <summary>
        /// 小说编号
        /// </summary>
        [DataMember]
        public string NovelId { get; set; }

        /// <summary>
        /// 小说地址
        /// </summary>
        [DataMember]
        public string ChapterUrl { get; set; }

        /// <summary>
        /// 下一章地址
        /// </summary>
        [DataMember]
        public string NextUrl { get; set; }

        /// <summary>
        /// 章节
        /// </summary>
        [DisplayName("章节")]
        [SugarColumn(ColumnName = "Chapter")]
        public string Chapter { get; set; }

        /// <summary>
        /// 章节索引号
        /// </summary>
        [DataMember]
        public int ChapterIdx { get; set; }

        /// <summary>
        /// 章节序号（中文）
        /// </summary>
        [DataMember]
        public string ChapterName { get; set; }

        /// <summary>
        /// 章节名称
        /// </summary>
        [DataMember]
        public string HeadWord { get; set; }

        ///// <summary>
        ///// 章节内容
        ///// </summary>
        //[DataMember]
        //public string Content { get; set; }

        /// <summary>
        /// 章节字数
        /// </summary>
        [DataMember]
        public int WordCount { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [DataMember]
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        [DataMember]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 有效章节：0-否；1-是；
        /// </summary>
        [DataMember]
        public int ValidChapter { get; set; }


    }
}
